package com.dsp.bean;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.AccessType;

import com.core.util.BaseBean;

@Entity
@Table(name = "companys")
public class Company extends BaseBean {

	/**
	 * 
	 */
	private static final long serialVersionUID = 591278109199264047L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@AccessType(value = "property")
	@Column(name = "id")
	private Long id;

	@AccessType(value = "property")
	@Column(name = "ccode")
	private String ccode;

	@AccessType(value = "property")
	@Column(name = "cname")
	private String cname;

	@AccessType(value = "property")
	@Column(name = "caddress")
	private String caddress;

	@AccessType(value = "property")
	@Column(name = "contact")
	private String contact;

	@AccessType(value = "property")
	@Column(name = "job")
	private String job;

	@AccessType(value = "property")
	@Column(name = "phone")
	private String phone;

	@AccessType(value = "property")
	@Column(name = "telphone")
	private String telphone;

	@AccessType(value = "property")
	@Column(name = "fax")
	private String fax;
	
	@AccessType(value = "property")
	@Column(name = "province")
	private String province;

	@AccessType(value = "property")
	@Column(name = "city")
	private String city;
	
	@AccessType(value = "property")
	@Column(name = "area")
	private String area;
	
	@AccessType(value = "property")
	@Column(name = "py_code")
	private String pyCode;
	
	@AccessType(value = "property")
	@Column(name = "c_method")
	private String cMethod;
	
	@AccessType(value = "property")
	@Column(name = "c_type")
	private String cType;
	
	@AccessType(value = "property")
	@Column(name = "org_code")
	private String orgCode;
	
	@AccessType(value = "property")
	@Column(name = "insure_base")
	private BigDecimal insureBase;
	
	@AccessType(value = "property")
	@Column(name = "provident_base")
	private BigDecimal providentBase;
	
	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @return the ccode
	 */
	public String getCcode() {
		return ccode;
	}

	/**
	 * @return the cname
	 */
	public String getCname() {
		return cname;
	}

	/**
	 * @return the caddress
	 */
	public String getCaddress() {
		return caddress;
	}

	/**
	 * @return the contact
	 */
	public String getContact() {
		return contact;
	}

	/**
	 * @return the job
	 */
	public String getJob() {
		return job;
	}

	/**
	 * @return the phone
	 */
	public String getPhone() {
		return phone;
	}

	/**
	 * @return the telphone
	 */
	public String getTelphone() {
		return telphone;
	}

	/**
	 * @return the fax
	 */
	public String getFax() {
		return fax;
	}

	/**
	 * @return the province
	 */
	public String getProvince() {
		return province;
	}

	/**
	 * @return the city
	 */
	public String getCity() {
		return city;
	}

	/**
	 * @return the area
	 */
	public String getArea() {
		return area;
	}

	/**
	 * @return the pyCode
	 */
	public String getPyCode() {
		return pyCode;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @param ccode the ccode to set
	 */
	public void setCcode(String ccode) {
		this.ccode = ccode;
	}

	/**
	 * @param cname the cname to set
	 */
	public void setCname(String cname) {
		this.cname = cname;
	}

	/**
	 * @param caddress the caddress to set
	 */
	public void setCaddress(String caddress) {
		this.caddress = caddress;
	}

	/**
	 * @param contact the contact to set
	 */
	public void setContact(String contact) {
		this.contact = contact;
	}

	/**
	 * @param job the job to set
	 */
	public void setJob(String job) {
		this.job = job;
	}

	/**
	 * @param phone the phone to set
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**
	 * @param telphone the telphone to set
	 */
	public void setTelphone(String telphone) {
		this.telphone = telphone;
	}

	/**
	 * @param fax the fax to set
	 */
	public void setFax(String fax) {
		this.fax = fax;
	}

	/**
	 * @param province the province to set
	 */
	public void setProvince(String province) {
		this.province = province;
	}

	/**
	 * @param city the city to set
	 */
	public void setCity(String city) {
		this.city = city;
	}

	/**
	 * @param area the area to set
	 */
	public void setArea(String area) {
		this.area = area;
	}

	/**
	 * @param pyCode the pyCode to set
	 */
	public void setPyCode(String pyCode) {
		this.pyCode = pyCode;
	}

	/**
	 * @return the cMethod
	 */
	public String getcMethod() {
		return cMethod;
	}

	/**
	 * @return the cType
	 */
	public String getcType() {
		return cType;
	}

	/**
	 * @return the orgCode
	 */
	public String getOrgCode() {
		return orgCode;
	}

	/**
	 * @param cMethod the cMethod to set
	 */
	public void setcMethod(String cMethod) {
		this.cMethod = cMethod;
	}

	/**
	 * @param cType the cType to set
	 */
	public void setcType(String cType) {
		this.cType = cType;
	}

	/**
	 * @param orgCode the orgCode to set
	 */
	public void setOrgCode(String orgCode) {
		this.orgCode = orgCode;
	}

	/**
	 * @return the insureBase
	 */
	public BigDecimal getInsureBase() {
		return insureBase;
	}

	/**
	 * @return the providentBase
	 */
	public BigDecimal getProvidentBase() {
		return providentBase;
	}

	/**
	 * @param insureBase the insureBase to set
	 */
	public void setInsureBase(BigDecimal insureBase) {
		this.insureBase = insureBase;
	}

	/**
	 * @param providentBase the providentBase to set
	 */
	public void setProvidentBase(BigDecimal providentBase) {
		this.providentBase = providentBase;
	}
}
